package biz.obake.team.touchprotector.notice;

import biz.obake.team.touchprotector.g.c;

public class DonationNotice extends ClosableNotice implements c.b {
    DonationNotice() {
        c.e(this);
    }

    /* JADX WARNING: Removed duplicated region for block: B:12:0x002e A[ADDED_TO_REGION] */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public boolean isAlerted() {
        /*
            r5 = this;
            java.lang.String r0 = "Donation.Status"
            java.lang.String r0 = biz.obake.team.touchprotector.g.c.c(r0)
            int r1 = r0.hashCode()
            r2 = -791831627(0xffffffffd0cd9bb5, float:-2.75962696E10)
            r3 = 0
            r4 = 1
            if (r1 == r2) goto L_0x0021
            r2 = 67232232(0x401e1e8, float:1.5267608E-36)
            if (r1 == r2) goto L_0x0017
            goto L_0x002b
        L_0x0017:
            java.lang.String r1 = "Error"
            boolean r0 = r0.equals(r1)
            if (r0 == 0) goto L_0x002b
            r0 = 1
            goto L_0x002c
        L_0x0021:
            java.lang.String r1 = "Donated"
            boolean r0 = r0.equals(r1)
            if (r0 == 0) goto L_0x002b
            r0 = 0
            goto L_0x002c
        L_0x002b:
            r0 = -1
        L_0x002c:
            if (r0 == 0) goto L_0x0035
            if (r0 == r4) goto L_0x0035
            boolean r0 = super.isAlerted()
            return r0
        L_0x0035:
            return r3
        */
        throw new UnsupportedOperationException("Method not decompiled: biz.obake.team.touchprotector.notice.DonationNotice.isAlerted():boolean");
    }

    /* JADX WARNING: Removed duplicated region for block: B:12:0x002e A[ADDED_TO_REGION] */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public boolean isVisible() {
        /*
            r5 = this;
            java.lang.String r0 = "Donation.Status"
            java.lang.String r0 = biz.obake.team.touchprotector.g.c.c(r0)
            int r1 = r0.hashCode()
            r2 = -791831627(0xffffffffd0cd9bb5, float:-2.75962696E10)
            r3 = 0
            r4 = 1
            if (r1 == r2) goto L_0x0021
            r2 = 67232232(0x401e1e8, float:1.5267608E-36)
            if (r1 == r2) goto L_0x0017
            goto L_0x002b
        L_0x0017:
            java.lang.String r1 = "Error"
            boolean r0 = r0.equals(r1)
            if (r0 == 0) goto L_0x002b
            r0 = 1
            goto L_0x002c
        L_0x0021:
            java.lang.String r1 = "Donated"
            boolean r0 = r0.equals(r1)
            if (r0 == 0) goto L_0x002b
            r0 = 0
            goto L_0x002c
        L_0x002b:
            r0 = -1
        L_0x002c:
            if (r0 == 0) goto L_0x0035
            if (r0 == r4) goto L_0x0035
            boolean r0 = super.isVisible()
            return r0
        L_0x0035:
            return r3
        */
        throw new UnsupportedOperationException("Method not decompiled: biz.obake.team.touchprotector.notice.DonationNotice.isVisible():boolean");
    }

    public void onRamPrefsChanged(String str) {
        if ("Donation.Status".equals(str)) {
            update();
        }
    }
}
